import request from '@/utils/request'
export default({
    getDeptList(){
        return request({
            url:'/sys/dept/list',
            method:'post'
        })
    },
    addDept(data){
        return request({
            url:'/sys/dept/save',
            method:'post',
            params:data
        })
    },
    deleteDept(data){
        return request({
            url:'/sys/dept/delete',
            method:'post',
            params:{
                "deptId":data
            }
        })
    },
    getInfo(data){
        return request({
            url:'/sys/dept/info/'+data,
            method:'post'
        })
    },
    modify(data){
        return request({
            url:'/sys/dept/update',
            method:'post',
            params:data
        })
    }
})